import Layout from '@/components/Layout'

const routerMap = [
    {
        path: '/form',
        component: Layout,
        meta: {
            keepalive: true,
            title: '表单页',
            icon: 'form',
            name: '/form'
        },
        children: [
            {
                path: '/form/baseForm',
                component: () => import('@/views/form/baseForm'),
                meta: {
                    keepalive: true,
                    title: '基础表单',
                    name: '/form/baseForm'
                }
            }
        ]
    }, {
        path: "/demo",
        component: Layout,
        meta: {
            keepalive: false,
            title: '测试页',
            icon: 'form',
            name: '/demo'
        },
        children: [
            {
                path: '/demo/index',
                component: () => import('@/views/demo'),
                meta: {
                    keepalive: false,
                    title: '测试',
                    name: '/demo/index'
                }
            }
        ]
    },
    {
        path: '/table',
        component: Layout,
        meta: {
            keepalive: true,
            title: '列表',
            icon: 'table',
            name: '/table'
        },
        children: [
            {
                path: '/table/baseTable',
                component: () => import('@/views/table/baseTable'),
                meta: {
                    keepalive: true,
                    title: '基础列表',
                    name: '/table/baseTable'
                }
            },
            {
                path: '/table/searchTable',
                component: () => import('@/views/table/searchTable'),
                meta: {
                    keepalive: true,
                    title: '复杂列表',
                    name: '/table/searchTable'
                }
            }
        ]
    }
]
export default routerMap
